package com.fiap.solutions.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.joda.time.DateTime;

@Entity
@SequenceGenerator(name="CLIENTE_ORACLE", sequenceName="SEQ_FATURAMENTO", allocationSize=1)
public class Faturamento implements Serializable{
	private static final long serialVersionUID = 7878012133933427458L;
	@Id
	@GeneratedValue(generator="CLIENTE_ORACLE", strategy=GenerationType.SEQUENCE)
	private int codigo;
	
	@Column(nullable=false)
	private DateTime data;
	
	@Column(nullable=false)
	private double valorTotalDiario;

	public int getCodigo() {
		return codigo;
	}

	public void setCodigo(int codigo) {
		this.codigo = codigo;
	}

	public DateTime getData() {
		return data;
	}

	public void setData(DateTime data) {
		this.data = data;
	}

	public double getValorTotalDiario() {
		return valorTotalDiario;
	}

	public void setValorTotalDiario(double valorTotalDiario) {
		this.valorTotalDiario = valorTotalDiario;
	}
}
